﻿// -----------------------------------------------------------------------
// <copyright file="SqlCommandSourceBase.cs" company="">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace Dhgms.TplHelper.Model.SqlCommandSource
{
    using System;
    using System.Collections.Generic;
    using System.Data.Common;
    using System.Linq;
    using System.Text;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public abstract class SqlCommandSourceBase<TDatabaseParameter> : ISqlCommandSource<TDatabaseParameter>
        where TDatabaseParameter : DbParameter
    {
        /// <summary>
        /// Gets the command
        /// </summary>
        /// <returns></returns>
        public abstract string GetCommand();

        /// <summary>
        /// Gets a collection of parameters
        /// </summary>
        /// <returns>Collection of parameters</returns>
        public abstract TDatabaseParameter[] GetParameters();
    }
}
